package cn.oop.polymorphism;

public class Test {
    public static void TestAnimalVoice(Animal c) {
        c.voice();
    }

    public static void main(String[] args) {
        Animal aaa = new Pig();
        TestAnimalVoice(aaa);
    }
}
